package com.louzhu.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.louzhu.common.utils.PageUtils;
import com.louzhu.gulimall.member.entity.MemberEntity;
import com.louzhu.gulimall.member.exception.PhoneExistException;
import com.louzhu.gulimall.member.exception.UserNameExistException;
import com.louzhu.gulimall.member.vo.MemberLoginVo;
import com.louzhu.gulimall.member.vo.MemberRegisterVo;
import com.louzhu.gulimall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author jianfneg
 * @email 501039356@qq.com
 * @date 2021-07-15 19:32:25
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVo registerVo);

    void checkUserName(String userName) throws UserNameExistException;

    void checkPhone(String phone) throws PhoneExistException;

    MemberEntity login(MemberLoginVo loginVo);

    MemberEntity login(SocialUser socialUser);
}

